package com.xinqi.modules.exam.task.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xinqi.common.mybatis.data.repo.SuperMapper;
import com.xinqi.modules.exam.task.domain.AsyncTaskProcessLogEntity;
import com.xinqi.modules.exam.task.dto.req.AsyncTaskProcessLogQueryDTO;
import com.xinqi.modules.exam.task.dto.rsp.AsyncTaskProcessLogResultDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 异步任务处理日志数据层
 *
 * @author: linkai
 * @date: 2023/07/08
 */
@Mapper
public interface AsyncTaskProcessLogMapper extends SuperMapper<AsyncTaskProcessLogEntity> {
    Page<AsyncTaskProcessLogResultDTO> findPage(Page<Object> page, @Param("dto") AsyncTaskProcessLogQueryDTO query);

    List<AsyncTaskProcessLogResultDTO> findList(@Param("dto") AsyncTaskProcessLogQueryDTO query);
}
